﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VNEYEModel;

public partial class Account_AddService : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        string name = txtNam.Text;
        string description = txtDesc.Text;
        string content = txtContent.Text;
        var en = new VNEYEEntities();
        en.AddService(name, description, content);
        lblInfo.Text = "Thêm Mới Dịch Vụ Thành Công !";
        Reset();
    }
    public void Reset()
    {
        txtNam.Text = "";
        txtDesc.Text = "";
        txtContent.Text = "";
    }
}